package com.woniu.service.impl;

import com.woniu.dao.LendingOrderDao;
import com.woniu.entity.LendingOrder;
import com.woniu.service.LendingOrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: 王汇麒  <br/>
 * Date: 2022/9/28:9:59  <br/>
 * Description:
 */
@Service
public class LendingOrderServiceImpl implements LendingOrderService {

    @Resource
    LendingOrderDao lendingOrderDao;

    @Override
    public List<LendingOrder> findLendingOrderList(LendingOrder lendingOrder) {
        return lendingOrderDao.selectLendingOrderList(lendingOrder);
    }

    @Override
    public int updateLendingOrder(LendingOrder lendingOrder) {
        int row = lendingOrderDao.updateLendingOrder(lendingOrder);
        return row;
    }

    @Override
    public LendingOrder findLendingOrderById(Integer id) {
        return lendingOrderDao.findLendingOrderById(id);
    }
}
